home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / g_man / cat3 / OpenGL-ftn / fglusphere.z / fglusphere
Text File  |  1998-10-20  |  4KB  |  67 lines

  1.  
  2.  
  3.  
  4. ffffgggglllluuuuSSSSpppphhhheeeerrrreeee((((3333GGGG))))                 OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                 ffffgggglllluuuuSSSSpppphhhheeeerrrreeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ffffgggglllluuuuSSSSpppphhhheeeerrrreeee - draw a sphere
  10.  
  11.  
  12. FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      SUBROUTINE ffffgggglllluuuuSSSSpppphhhheeeerrrreeee( CHARACTER*8 _q_u_a_d,
  14.                             REAL*4 _r_a_d_i_u_s,
  15.                             INTEGER*4 _s_l_i_c_e_s,
  16.                             INTEGER*4 _s_t_a_c_k_s )
  17.  
  18.  
  19. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  20.      _q_u_a_d    Specifies the quadrics object (created with ffffgggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc).
  21.  
  22.      _r_a_d_i_u_s  Specifies the radius of the sphere.
  23.  
  24.      _s_l_i_c_e_s  Specifies the number of subdivisions around the _z axis (similar
  25.              to lines of longitude).
  26.  
  27.      _s_t_a_c_k_s  Specifies the number of subdivisions along the _z axis (similar to
  28.              lines of latitude).
  29.  
  30.  
  31. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  32.      ffffgggglllluuuuSSSSpppphhhheeeerrrreeee draws a sphere of the given radius centered around the origin.
  33.      The sphere is subdivided around the _z axis into slices and along the _z
  34.      axis into stacks (similar to lines of longitude and latitude).
  35.  
  36.      If the orientation is set to GGGGLLLLUUUU____OOOOUUUUTTTTSSSSIIIIDDDDEEEE (with ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccOOOOrrrriiiieeeennnnttttaaaattttiiiioooonnnn),
  37.      then any normals generated point away from the center of the sphere.
  38.      Otherwise, they point toward the center of the sphere.
  39.  
  40.      If texturing is turned on (with ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee), then texture
  41.      coordinates are generated so that _t ranges from 0.0 at z=-radius to 1.0
  42.      at z=radius (_t increases linearly along longitudinal lines), and _s ranges
  43.      from 0.0 at the +_y axis, to 0.25 at the +_x axis, to 0.5 at the -_y axis,
  44.      to 0.75 at the -_x axis, and back to 1.0 at the +_y axis.
  45.  
  46.  
  47. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  48.      ffffgggglllluuuuCCCCyyyylllliiiinnnnddddeeeerrrr, ffffgggglllluuuuDDDDiiiisssskkkk, ffffgggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc, ffffgggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk,
  49.      ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccOOOOrrrriiiieeeennnnttttaaaattttiiiioooonnnn, ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.